<html xmlns:c="http://www.concordion.org/2007/concordion">
<link href="../../../../concordion.css" rel="stylesheet" type="text/css"/>
<body>

<h1>Error Scenario</h1>

<div class="example">
    <h3>Example</h3>

    <p>When the Scenario Extension is installed that adds the <code>scenario</code>
        command in the <code>http://www.agileinsider.org/concordion/plus</code> namespace.
        This command should highlight error scenarios.</p>

    <p>Running a specification containing: </p>
<pre c:execute="process(#TEXT)">
&lt;div xmlns:cp="http://www.agileinsider.org/concordion/plus" xmlns:c="http://www.concordion.org/2007/concordion"&gt;
    &lt;div cp:scenario="Error Scenario"&gt;
        Should get an &lt;span c:execute="nonExistingMethod()"&gt;Exception&lt;/span&gt;
    &lt;/div&gt;
&lt;/div&gt;
</pre>

    <p>Should match:</p>
<pre c:assertEquals="outputMatches(#TEXT)">
&lt;div xmlns:cp="http://www.agileinsider.org/concordion/plus" xmlns:c="http://www.concordion.org/2007/concordion"&gt;
    &lt;div cp:scenario="Error Scenario" class="error"&gt;
        .*&lt;span class="exceptionMessage"&gt;.*
    &lt;/div&gt;
&lt;/div&gt;
</pre>

</div>

</body>
</html>
